package finance

class InvestmentType {
	Long id
    Long version
    String investment_type
    boolean auto_update

    static constraints = {
		investment_type(size:3..50, blank:false, unique:true)
    }
	
	static mapping = {
        table 'investment_type'
        columns {
        	id column: 'investment_type_id'
        }
    }
	
	String toString() {
		return "Investment Type: ${id}, ${investment_type}, ${auto_update}"
	}
}